package ah.basic.dynamicBind;

class A {
	public void method() {
		System.out.println("A's method");
	}
	
	public void method2() {
		System.out.println("A's method2");
		method();
	}
}

class B extends A {
	public void method() {
		System.out.println("B's method");
	}
}

public class Test {
	public static void main(String[] args) {
		new B().method2();
	}
}